package com.ruben;

import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * tube测试类
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/5/15 0015 21:03
 */
public class TubeTest {
    public static void main(String[] args) {
        Stream.generate(() -> 6).limit(3).forEach(System.out::print);
        String abc = getAbc("word", "name");
        System.out.println(abc);
        int rubenAchaoNameAge = 1;
        System.out.println("好家伙");
    }

    public static String getAbc(String word, String name) {
        String abc = Stream.iterate('A', c -> ++c)
                .limit(26)
                .map(String::valueOf)
                .map(String::toLowerCase)
                .collect(Collectors.joining());
        return abc;
    }
}
